home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / menus / panman15.zip / PMPRT.BAT < prev    next >
DOS Batch File  |  1990-07-28  |  900b  |  28 lines

  1. Echo Off
  2. Rem : PMPRT.BAT : %1=Panel, %2=Directory (or X),
  3. Rem :             %3-%9=Command Line
  4. Cls
  5. Echo ┌─────────────────────────────────────────┐
  6. Echo │ Where do you want printed output to go? │
  7. Echo ├─────────────────────────────────────────┤
  8. Echo │ L - Local printer (on your computer).   │
  9. Echo │ 0 - Local Area Network Printer 0        │
  10. Echo │ 1 - Local Area Network Printer 1        │
  11. Echo │ Q - Quit (go back to the menu)          │
  12. Echo └─────────────────────────────────────────┘
  13. Echo  
  14. Set PRT=L
  15. Task Press key "L", "0", "1", or "Q"? $L01Q
  16. Echo  
  17. If ErrorLevel 81 If Not ErrorLevel 82 PMCAN %1
  18. If ErrorLevel 49 If Not ErrorLevel 50 Set PRT=1
  19. If ErrorLevel 48 If Not ErrorLevel 49 Set PRT=0
  20. If Not [%2]==[X] If Not [%2]==[x] ChDir %2
  21. If Not [%PRT%]==[L] %3 %4 %5 %6 %7 %8 %9 /PRINTER=%PRT%
  22. If     [%PRT%]==[L] %3 %4 %5 %6 %7 %8 %9
  23. Cls
  24. Echo  
  25. ChDir \
  26. Set PRT=
  27. %1
  28.